package com.cxf.windex.biz;

import com.cxf.windex.base.biz.BaseBiz;
import com.cxf.windex.entity.Address;
import com.cxf.windex.mapper.AddressMapper;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author chenxf
 * @date 3/20/2018
 * @description
 */
@Service
public class AddressBiz extends BaseBiz<AddressMapper, Address> {

  public void insertAddress(Address entity) {
    mapper.insertAddress(entity);
  }

  public void updateAddressById(Address entity) {
    mapper.updateAddressById(entity);
  }

  public List<String> selectName( String name ) {
    return mapper.selectName( name );
  }

  public List<Address> selectMap( String latitude,String longitude,String dist){
    return mapper.selectMap(latitude,longitude,dist);
  }

  public List<Address> selectList( String latitude,String longitude,String address,String orderStr){
    return mapper.selectList(latitude,longitude,address,orderStr);
  }
}
